var ns;
app = new Vue({
    el: '#app',
    data: {
        activeIndex: 1
    },
    methods: {
        doOpenSearch: function() {
            var that = this;
            ns.openWin('searchkeywords_frm', '搜索');
        },
        openFrame: function(index) {
            var that = this;
            that.activeIndex = index;
            var name = 'analysis_customerservice_process_frm';
            if (index == 2) {
                name = 'analysis_customerservice_summary_frm';
            }
            ns.openFrame(name, null, {
                rect: {
                    x: 0,
                    y: api.pageParam.header_h,
                    w: 'auto',
                    h: api.winHeight - 45 - api.pageParam.header_h,
                }
            });
        }
    }
});
apiready = function() {
    api.parseTapmode();
    ns = window.Foresight.Util;
    app.openFrame(1);
};
